/**
 * 
 */
package com.bemol.kernel.service;


/**
 * @author samuelgmartinez
 *
 */
public class ServiceException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3908295977268760180L;

	private Class<? extends Service> serviceInterfaceClass;
	private Class<? extends Service> serviceImplentationClass;
	
	public ServiceException(Class<? extends Service> interfaceClass, Class<? extends Service> implementationClass) {
		this.serviceImplentationClass = implementationClass;
		this.serviceInterfaceClass = interfaceClass;
	}
	
	public ServiceException(Class<? extends Service> interfaceClass, Class<? extends Service> implementationClass, String msg) {
		super(msg);
		this.serviceImplentationClass = implementationClass;
		this.serviceInterfaceClass = interfaceClass;
	}
	
	public ServiceException(Class<? extends Service> interfaceClass, Class<? extends Service> implementationClass, Throwable ex) {
		super(ex);
		this.serviceImplentationClass = implementationClass;
		this.serviceInterfaceClass = interfaceClass;
	}
	
	public ServiceException(Class<? extends Service> interfaceClass, Class<? extends Service> implementationClass, String msg, Throwable ex) {
		super(msg, ex);
		this.serviceImplentationClass = implementationClass;
		this.serviceInterfaceClass = interfaceClass;
	}

	public Class<? extends Service> getServiceInterfaceClass() {
		return serviceInterfaceClass;
	}

	public Class<? extends Service> getServiceImplentationClass() {
		return serviceImplentationClass;
	}
	
}
